package home.pkg.vm

import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.provider.ContactsContract
import androidx.appcompat.widget.DrawableUtils
import androidx.core.content.ContextCompat
import androidx.lifecycle.MutableLiveData
import com.blankj.utilcode.util.ColorUtils
import com.blankj.utilcode.util.Utils
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import lib.base.BaseViewModel

/**
 *  author: luoXiong
 *  e-mail: 382060748@qq.com
 *  date: 2021/9/10 21:59
 *  version: 1.0
 *  desc:
 */
class HomeVm : BaseViewModel() {

    val name1 = MutableStateFlow("我是")
    val name2 = MutableLiveData("")
    val name3 = MutableStateFlow(1)
    val name4 = MutableStateFlow(false)
    //val imgRes = MutableStateFlow<Drawable>(ColorDrawable(ColorUtils.getColor(android.R.color.transparent)))
    val imgRes = MutableLiveData<Drawable>()
}